package com.test.topic;

import java.util.HashMap;
import java.util.Map;

public class Topic {
	
	public static final String CHAT = "/chat";
	
	public static final String NEWS = "/news";
	
	public static final String ADVERTISEMENT = "/advertisement";
	
	//..........................
	
	
	public static void main(String[] args) {
		Map<String, String> maps = new HashMap<>();
		for (int i = 0; i < 1000000000; i++) {
			maps.put("key:" + i, i + "");
		}
		String key = "key";
		long t1 = System.currentTimeMillis();
		for (int i = 0; i < 1000000000; i++) {
			maps.get("key" + i);
		}
		long t2 = System.currentTimeMillis();
		System.out.println(t2-t1);
	}
	
	public String get(Map<String, String> params, String key) {
		return params.get(key);
	}

}
